package com.nmmhu.bean;

import com.nmmhu.annotation.UserAnnotation;

import java.time.LocalDateTime;

/**
 * @author nmm
 * @date 2024-04-2024/4/6
 * @deriction njm......
 */
public class UserInfo {

 @UserAnnotation("id")
 private int id;

 @UserAnnotation("name")
 private String  name;

 @UserAnnotation("age")
 private int age;

 @UserAnnotation("phone")
 private String phone;

 @UserAnnotation("sta_pos")
 private  String staPos;

 @UserAnnotation("add_time")
 private LocalDateTime addTime;

 @UserAnnotation("update_time")
 private LocalDateTime updateTime;



 public void setId(int id) {
  this.id = id;
 }


 public void setName(String name) {
  this.name = name;
 }


 public void setAge(int age) {
  this.age = age;
 }


 public void setPhone(String phone) {
  this.phone = phone;
 }


 public void setStaPos(String staPos) {
  this.staPos = staPos;
 }


 public void setAddTime(LocalDateTime addTime) {
  this.addTime = addTime;
 }


 public void setUpdateTime(LocalDateTime updateTime) {
  this.updateTime = updateTime;
 }

 @Override
 public String toString() {
  return "UserInfo{" +
          "id=" + id +
          ", name='" + name + '\'' +
          ", age=" + age +
          ", phone='" + phone + '\'' +
          ", staPos='" + staPos + '\'' +
          ", addTime=" + addTime +
          ", updateTime=" + updateTime +
          '}';
 }

}